import { createRouter, createWebHistory } from 'vue-router';
import home from '../views/Home.vue';
import basic from '../components/basic.vue';
import lightBasic from '../components/lightBaisc.vue';

const routes = [
    { 
        path: '/', 
        component: home,
        redirect:'/basic'
    },
    { 
        path: '/basic', 
        component: basic 
    },
    { 
        path: '/lightBasic', 
        component: lightBasic 
    },
   
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;
